//
//  ONUserLogin.m
//  Volatix
//
//  Created by Anh Tran on 6/28/14.
//  Copyright (c) 2014 Familly. All rights reserved.
//

#import "ONUserLogin.h"

@implementation ONUserLogin

+ (instancetype)modelObjectWithDictionary:(NSDictionary *)dict
{
    return [[self alloc] initWithDictionary:dict];
}

- (instancetype)initWithDictionary:(NSDictionary *)dict
{
    self = [super init];
    
    // This check serves to make sure that a non-NSDictionary object
    // passed into the model class doesn't break the parsing.
    BOOL isParsing=NO;
    if(self && [dict isKindOfClass:[NSDictionary class]]) {
        /// bool
        isParsing=YES;
      
        self.accessToken = [dict objectForKey:@"access_token"];
    }
    
    return (isParsing)?self:nil;
    
}

@end
